-
Notifications
You must be signed in to change notification settings - Fork 10
Congressional District-Level Calibration with Geo Stacking Methodology #437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
baogorek
added a commit
that referenced
this pull request
Sep 10, 2025
Add CPS_2025 generation to TEST_LITE pipeline to ensure the test_cps_2025_generates test passes in CI. The test was expecting CPS_2025 to exist but it wasn't being generated in TEST_LITE mode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Add file existence check before opening database - Convert db_path to absolute path to ensure SQLite can find it - Add verification step in workflow to catch download failures early 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Replace absolute path with relative path computed from script location to work in both local and GitHub Actions environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Merged 5 separate markdown files into one concise README.md: - AUDIT.md, GEO_STACKING_PIPELINE.md, GEO_STACKING_TECHNICAL.md, PROJECT_STATUS.md, VALIDATION_DESIGN_MATRIX.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
…ruth - Add get_calculated_variables(), apply_op(), state mappings to calibration_utils.py - Add get_all_cds_from_database() to replace duplicate SQL queries - Remove freeze_calculated_vars parameter (use aggregate tolerance instead) - Update cache clearing to use canonical get_calculated_variables() - Clean up test files and add test_sparse_matrix_verification.py - Update README with state-dependent variable documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Move all files from geo_stacking_calibration/ to local_area_calibration/ - Update import paths across all modules - Remove obsolete test_sparse_matrix_builder.py (replaced by test_sparse_matrix_verification.py) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements congressional district (CD) level estimation capability through a geo-stacking calibration framework with hierarchical targets database.
Key Features
Targets Database Infrastructure
Geo-Stacking Calibration
Quality Assurance
Developer Experience
GEO_STACKING=trueenvironment variable for specialized pipelinemake data-geotarget for geo-stacking workflowgeo_stacking_calibration/directoryTechnical Details
The geo-stacking approach creates geographically-representative microdata by:
See
policyengine_us_data/datasets/cps/geo_stacking_calibration/GEO_STACKING_TECHNICAL.mdfor detailed methodology.Usage
Breaking Changes
None - all functionality is additive and behind feature flags.